from typing import *


class Solution:

    def haveConflict(self, event1: List[str], event2: List[str]) -> bool:

        def f(e):
            start = int(e[0][:2]) * 60 + int(e[0][3:])
            end = int(e[1][:2]) * 60 + int(e[1][3:])
            return [start, end]

        a = f(event1)
        b = f(event2)
        return max(a[0], b[0]) <= min(a[1], b[1])
class Solution:
    def haveConflict(self, event1: List[str], event2: List[str]) -> bool:
        return not(event1[1] < event2[0] or event2[1] < event1[0])
class Solution:
    def haveConflict(self, event1: List[str], event2: List[str]) -> bool:
        return event1[1] >= event2[0] and event2[1] >= event1[0]


s = Solution()
print(s.haveConflict(event1=["01:15", "02:00"], event2=["02:00", "03:00"]))
